#计算字符串中有多少个数字，
# 多少个字母 其他符号有多少个
str = "123dasd12545435qe  @!#@saa2133sac"
# 数字
count_num=0
#字母
count_zimu=0
#其他
count_other=0
for s in str:
    if s>='0' and s<='9':
        count_num+=1
    elif (s>='a' and s<='z') or  (s>='A' and s<='Z'):
        count_zimu+=1
    else:
        count_other+=1
print("数字有：",count_num)
print("字母有：",count_zimu)
print("其他字符有：",count_other)





